package models;

import java.util.ArrayList;
import java.util.Map;

public class Person {
	private int id;
	private String firstName;
	private String lastname;
	private String gender;
	private String city;
	private int age;
	private int years;
	private String informationContact;
	private ArrayList<String> Studies;
	private ArrayList<String> knowledges;
	private ArrayList<Integer> knowledgesWeights;
	private ArrayList<String> qualities;
	private ArrayList<Integer> qualitiesWeights;
		
	public Person() {
		super();
	}
	
	
	public Person(int id, String firstName, String lastname, String gender,
			String city, int age, int years) {
		super();
		this.id = id;
		this.firstName = firstName;
		this.lastname = lastname;
		this.gender = gender;
		this.city = city;
		this.age = age;
		this.years = years;
	}


	public Person(int id, String firstName, String lastname, String gender,
			String city, int age, int years, String informationContact,
			ArrayList<String> studies, ArrayList<String> knowledges,
			ArrayList<Integer> knowledgesWeights, ArrayList<String> qualities,
			ArrayList<Integer> qualitiesWeights) {
		super();
		this.id = id;
		this.firstName = firstName;
		this.lastname = lastname;
		this.gender = gender;
		this.city = city;
		this.age = age;
		this.years = years;
		this.informationContact = informationContact;
		Studies = studies;
		this.knowledges = knowledges;
		this.knowledgesWeights = knowledgesWeights;
		this.qualities = qualities;
		this.qualitiesWeights = qualitiesWeights;
	}



	public int getId() {
		return id;
	}



	public void setId(int id) {
		this.id = id;
	}



	public int getYears() {
		return years;
	}



	public void setYears(int years) {
		this.years = years;
	}



	public String getInformationContact() {
		return informationContact;
	}



	public void setInformationContact(String informationContact) {
		this.informationContact = informationContact;
	}



	public ArrayList<Integer> getKnowledgesWeights() {
		return knowledgesWeights;
	}



	public void setKnowledgesWeights(ArrayList<Integer> knowledgesWeights) {
		this.knowledgesWeights = knowledgesWeights;
	}



	public ArrayList<String> getQualities() {
		return qualities;
	}



	public void setQualities(ArrayList<String> qualities) {
		this.qualities = qualities;
	}



	public ArrayList<Integer> getQualitiesWeights() {
		return qualitiesWeights;
	}



	public void setQualitiesWeights(ArrayList<Integer> qualitiesWeights) {
		this.qualitiesWeights = qualitiesWeights;
	}



	public Person(String firstName, String lastname, int age, String city, String gender) {
		super();
		this.firstName = firstName;
		this.lastname = lastname;
		this.gender = gender;
		this.city = city;
		this.age = age;
	}


	public String getFirstName() {
		return firstName;
	}
	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}
	public String getLastname() {
		return lastname;
	}
	public void setLastname(String lastname) {
		this.lastname = lastname;
	}
	public String getGender() {
		return gender;
	}
	public void setGender(String gender) {
		this.gender = gender;
	}
	public String getCity() {
		return city;
	}
	public void setCity(String city) {
		this.city = city;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}


	public ArrayList<String> getStudies() {
		return Studies;
	}

	public void setStudies(ArrayList<String> studies) {
		Studies = studies;
	}

	public ArrayList<String> getKnowledges() {
		return knowledges;
	}

	public void setKnowledges(ArrayList<String> knowledges) {
		this.knowledges = knowledges;
	}
	
	public void guardarEnBase(){
		database.PersonDB persondb = new database.PersonDB();
		persondb.guardarEnBase(this);
	}
	
	public static ArrayList<Person> obtenerPersonas(){
		database.PersonDB persondb = new database.PersonDB();
		return persondb.obtenerPersonas();
	}
	
	

	
}
